Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bad assumption about base repo identification #1937

Merged

Conversation

jkonecny12
Copy link
Member

Fix bad assumption about base repo identification (#1691832) …
This works for ISO and I have a feeling this is not true for repo files.

Fedora don't have naming of the repository that we are able to identify base repository so when we don't found base repository on the ISO we will just use root of the ISO as base repository and see how it goes.

Our tests for valid ISO where too strict about this. Right now we will look for base repo and if that is not found we will look on repo which has repository in the root.

Also fail (Source spoke fail) instead of trying to use ISO as directory source and fallbacking to closest mirror then.

I will test properly if this won't break something else... :(

This works for ISO and I have a feeling this is not true for repo files.

Fedora don't have naming of the repository that we are able to identify
base repository so when we don't found base repository on the ISO we
will just use root of the ISO as base repository and see how it goes.

Our tests for valid ISO where too strict about this. Right now we will
look for base repo and if that is not found we will look on repo which
has repository in the root.

Resolves: rhbz#1691832
In case the validation of the ISO goes wrong we will handle the ISO as
directory containing the repositories. From this commit further we will
first test if it is really a directory before doing that.

Related: rhbz#1691832
@jkonecny12 jkonecny12 added master Please, use the `f39` label instead. manual testing required This issue can't be merged without manual testing f30 labels Apr 5, 2019
Copy link
Contributor

@poncovka poncovka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks!

@jkonecny12 jkonecny12 removed the manual testing required This issue can't be merged without manual testing label Apr 8, 2019
@jkonecny12 jkonecny12 merged commit 0357dbd into rhinstaller:f30-devel Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f30 master Please, use the `f39` label instead.
2 participants